<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>东家帮-订单列表</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
	<meta name="format-detection" content="telephone=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="stylesheet" href="${base}/css/common.css"/>
	<link rel="stylesheet" href="${base}/css/index2.css"/>
</head>
<body>
<div class="houseList orderList">
	<#if !none??>
		<div class="one" >
			<div class="line">
				<div class="title" >
					暂无房东下单
				</div>
			</div>
		</div>
	</#if>
	<#list orderList as one>
	<div class="one" >
		<div class="line"><div class="title" >${one.name}</div></div>
		<div class="line" style="margin-top: 6px;padding-bottom: 6px;border-bottom:1px solid #f0f0f0;">
			<div class="label" style="font-size: 16px;">完成时间:</div><div class="time">${one.checkouttime1} 至 ${one.endtime1}</div>
			<div class="addr"><img src="${base}/images/area.png" width="14" height="12" style="margin-right: 5px;" >${one.province}${one.city}${one.village}${one.road} ${one.address}</div>
			
		</div>
		<div class="line" style="    padding-top: 8px;padding-bottom: 6px;">
			<div class="label" style="font-size: 16px;width: 40%;margin-top: 4px;color: #999;">距离 ${one.parentid}km</div><div class="time"><input class="btn" type="button" value="接单" onclick="meet('${one.oid}');" style="width: 90px;text-align: center;border-radius: 10px;padding: 3px 0px;color: #fff;float: right;"/></div>
		</div>
	</div>
	</#list>
</div>
</body>
<script src="${base}/js/jquery1.10.2.min.js" ></script>
<script type="text/javascript">
	function meet(id){
		var url = "meetOrder?id="+id;
		$.ajax({
	        url: url,
	        type: "post",
	        data:{},
	        dataType:"text",
	        success: function (data) {
	            alert(data);
	            window.location.reload();
	        }
	    });
	}
</script>
</html>